<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/6/23
 * Time: 4:21 PM
 */
namespace app\common\helpers;

class AdminSession
{
    /**
     * @return mixed
     */
    public static function getAdminUserId()
    {
        Session::start();
        return Session::get("adminUserId");
    }

    /**
     * @param mixed $adminUserId
     */
    public static function setAdminUserId($adminUserId)
    {
        Session::start();
        Session::set("adminUserId",$adminUserId);
    }

    /**
     * @return mixed
     */
    public static function getAdminUserName()
    {
        Session::start();
        return Session::get("adminUserName");
    }

    /**
     * @param mixed $adminUserName
     */
    public static function setAdminUserName($adminUserName)
    {
        Session::start();
        Session::set("adminUserName",$adminUserName);
    }

    /**
     * @return mixed
     */
    public static function getSiteId()
    {
        Session::start();
        return Session::get("siteId");
    }

    /**
     * @param mixed $siteId
     */
    public static function setSiteId($siteId)
    {
        Session::start();
        Session::set("siteId",$siteId);
    }

    public static function flush(){
        Session::start();
        Session::remove("adminUserId");
        Session::remove("adminUserName");
        Session::remove("siteId");
    }
}